package com.ruoyi.house_sale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 诚意金管理对象 earnestmoney
 * 
 * @author ruoyi
 * @date 2022-04-01
 */
public class Earnestmoney extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private String custname;
    private String housename;
    private String ticketname;

    public String getTicketname() {
        return ticketname;
    }

    public void setTicketname(String ticketname) {
        this.ticketname = ticketname;
    }

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public String getHousename() {
        return housename;
    }

    public void setHousename(String housename) {
        this.housename = housename;
    }

    /** 编号 */
    private Long earnestid;

    /** 购买房产编号（关联BuyHourse表） */
    @Excel(name = "购买房产编号", readConverterExp = "关=联BuyHourse表")
    private Long buyid;

    /** 票据本（关联票据管理表） */
    @Excel(name = "票据本", readConverterExp = "关=联票据管理表")
    private Long ticketno;

    /** 票据本编号 */
    @Excel(name = "票据本编号")
    private String ticketflow;

    /** 收款方式类别(关联付款方式表） */
    @Excel(name = "收款方式类别(关联付款方式表）")
    private String paidtypeid;

    /** 诚意金 */
    @Excel(name = "诚意金")
    private BigDecimal paidmoney;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidtime;

    /** 是否转收付款（是，否） */
    @Excel(name = "是否转收付款", readConverterExp = "是=，否")
    private String istranslate;

    /** 转收付款金额 */
    @Excel(name = "转收付款金额")
    private BigDecimal transmoney;

    /** 状态（收取，转签约） */
    @Excel(name = "状态", readConverterExp = "收=取，转签约")
    private String status;

    /** 操作人（session取值，登录账号） */
    @Excel(name = "操作人", readConverterExp = "s=ession取值，登录账号")
    private String userid;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date oprtime;

    /** 是否有效（有效，作废） */
    @Excel(name = "是否有效", readConverterExp = "有=效，作废")
    private String invalid;

    public void setEarnestid(Long earnestid) 
    {
        this.earnestid = earnestid;
    }

    public Long getEarnestid() 
    {
        return earnestid;
    }
    public void setBuyid(Long buyid) 
    {
        this.buyid = buyid;
    }

    public Long getBuyid() 
    {
        return buyid;
    }
    public void setTicketno(Long ticketno) 
    {
        this.ticketno = ticketno;
    }

    public Long getTicketno() 
    {
        return ticketno;
    }
    public void setTicketflow(String ticketflow) 
    {
        this.ticketflow = ticketflow;
    }

    public String getTicketflow() 
    {
        return ticketflow;
    }
    public void setPaidtypeid(String paidtypeid) 
    {
        this.paidtypeid = paidtypeid;
    }

    public String getPaidtypeid() 
    {
        return paidtypeid;
    }
    public void setPaidmoney(BigDecimal paidmoney) 
    {
        this.paidmoney = paidmoney;
    }

    public BigDecimal getPaidmoney() 
    {
        return paidmoney;
    }
    public void setPaidtime(Date paidtime) 
    {
        this.paidtime = paidtime;
    }

    public Date getPaidtime() 
    {
        return paidtime;
    }
    public void setIstranslate(String istranslate) 
    {
        this.istranslate = istranslate;
    }

    public String getIstranslate() 
    {
        return istranslate;
    }
    public void setTransmoney(BigDecimal transmoney) 
    {
        this.transmoney = transmoney;
    }

    public BigDecimal getTransmoney() 
    {
        return transmoney;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setOprtime(Date oprtime) 
    {
        this.oprtime = oprtime;
    }

    public Date getOprtime() 
    {
        return oprtime;
    }
    public void setInvalid(String invalid) 
    {
        this.invalid = invalid;
    }

    public String getInvalid() 
    {
        return invalid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("custname", getCustname())
            .append("housename", getHousename())
             .append("ticketname", getTicketname())
            .append("earnestid", getEarnestid())
            .append("buyid", getBuyid())
            .append("ticketno", getTicketno())
            .append("ticketflow", getTicketflow())
            .append("paidtypeid", getPaidtypeid())
            .append("paidmoney", getPaidmoney())
            .append("paidtime", getPaidtime())
            .append("istranslate", getIstranslate())
            .append("transmoney", getTransmoney())
            .append("status", getStatus())
            .append("userid", getUserid())
            .append("oprtime", getOprtime())
            .append("invalid", getInvalid())
            .toString();
    }
}
